From 5ae9d73d9301cdf95b6567be8fcf1631c3f0b66a Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 19 Aug 2009 13:16:50 +0100 Subject: [PATCH] x86 hvm: Remove vendor-specific feature masking of 0x1:ECX. Vendors are respecting each others bits. Signed-off-by: Andre Przywara --- tools/libxc/xc_cpuid_x86.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/tools/libxc/xc_cpuid_x86.c b/tools/libxc/xc_cpuid_x86.c index f9ef0de10b..f31066a460 100644 --- a/tools/libxc/xc_cpuid_x86.c +++ b/tools/libxc/xc_cpuid_x86.c @@ -71,13 +71,6 @@ static void amd_xc_cpuid_policy( { switch ( input[0] ) { - case 0x00000001: - /* Mask Intel-only features. */ - regs[2] &= ~(bitmaskof(X86_FEATURE_SSSE3) | - bitmaskof(X86_FEATURE_SSE4_1) | - bitmaskof(X86_FEATURE_SSE4_2)); - break; - case 0x00000002: case 0x00000004: regs[0] = regs[1] = regs[2] = 0; @@ -126,11 +119,6 @@ static void intel_xc_cpuid_policy( { switch ( input[0] ) { - case 0x00000001: - /* Mask AMD-only features. */ - regs[2] &= ~(bitmaskof(X86_FEATURE_POPCNT)); - break; - case 0x00000004: /* * EAX[31:26] is Maximum Cores Per Package (minus one). -- 2.30.2